@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Source+Sans+Pro:wght@300;400;600&display=swap');

body {
    font-family: 'Source Sans Pro', sans-serif;
    line-height: 1.8;
    margin: 0;
    padding: 0;
    background-color: #f9f7f5;
    color: #2c3e50;
}

header {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
}

h1 {
    margin: 0;
    font-size: 3rem;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

nav {
    margin-top: 1.5rem;
}

nav ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #e74c3c;
    transition: width 0.3s ease;
}

nav ul li a:hover::after, nav ul li a.active::after {
    width: 100%;
}

main {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero {
    background: linear-gradient(135deg, #3498db, #8e44ad);
    color: #ecf0f1;
    padding: 4rem 2rem;
    text-align: center;
    margin-bottom: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.book-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    list-style-type: none;
    padding: 0;
}

.book-item {
    background-color: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    width: calc(33.333% - 2rem);
    max-width: 300px;
    overflow: hidden;
}

.book-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.book-item img {
    max-width: 70%;
    height: 300px;
    border-radius: 5px;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.book-item:hover img {
    transform: scale(1.05);
}

.book-item h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.book-item p {
    color: #7f8c8d;
    font-style: italic;
}

footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero, .book-item {
    animation: fadeInUp 0.8s ease-out forwards;
}

.search-input {
    padding: 0.8rem 1rem;
    margin-top: 1.5rem;
    width: 100%;
    max-width: 400px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    background-color: rgba(236, 240, 241, 0.1);
    color: #ecf0f1;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: rgba(236, 240, 241, 0.6);
}

.search-input:focus {
    outline: none;
    background-color: rgba(236, 240, 241, 0.2);
    box-shadow: 0 0 10px rgba(236, 240, 241, 0.1);
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .hero h2 {
        font-size: 2.2rem;
    }

    .book-list {
        flex-direction: column;
        align-items: center;
    }

    .book-item {
        width: 100%;
        max-width: 300px;
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin: 10px 0;
    }
}

.decorative-line {
    height: 3px;
    background: linear-gradient(to right, #e74c3c, #f39c12, #2ecc71, #3498db);
    margin: 2rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #2c3e50;
    position: relative;
}

.section-title.active::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background-color: #e74c3c;
    margin: 1rem auto 0;
}

